package com.totoro.springboot.druid.service;

import com.totoro.springboot.druid.model.User;

import java.util.List;

/**
 * Created by Niki on 2018/2/6 20:04
 */
public interface IUserService {
    public Long addUser(User user);

    public int deleteUser(Long id);

    public void updateUser(User user);

    public User findById(Long id);

    User findByName(String name);

    User findByNameAndAge(String name, Integer age);

    List<User> findAll();
}
